﻿@model IEnumerable<KurupiraApp.Models.Perfil>

@{
    ViewBag.Title = "Perfil";
}

<div class="container-fluid"> 
    <div class="row-fluid">        
        <div class="span4">
            @RenderPage("partial/sidenavmenu.cshtml")
        </div>
        <div class="span8">               
            <table class="table table-strip">
                <tr>
                    <th>
                        Nome
                    </th>
                    <th>
                        Sobre Nome
                    </th>
                    <th>
                        Apelido
                    </th>                   
                    <th></th>
                </tr>

            @foreach (var item in Model) {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.nome)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.sobrenome)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.apelido)
                    </td>                    
                    <td>
                        @Html.ActionLink("Editar", "Edit", new { id = item.UsuarioID }, new { Class = "btn" })
                        @Html.ActionLink("Detalhes", "Details", new { id=item.UsuarioID }, new { Class = "btn" })
                    </td>
                </tr>
            }
            </table>
        </div>
    </div>
</div>
